﻿using System.ComponentModel.DataAnnotations;

namespace Model.Dtos

{
    public class LoginRqtDto
    {
        [Display(Name = "账号")]
        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(20, MinimumLength = 3, ErrorMessage = "账号长度为3-20个字符.")]
        public string Account { get; set; }

        [Display(Name = "密码")]
        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(20, MinimumLength = 5, ErrorMessage = "密码长度为5-20个字符.")]
        public string Password { get; set; }
    }
}
